FORK = "starfive-tech"
BRANCH = "visionfive-5.19.y"
SRCREV = "${AUTOREV}"

LINUX_VERSION = "5.19.0"
LINUX_VERSION_EXTENSION:append = "-starlight"

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI = "git://git.mirror.iscas.ac.cn/github.com/starfive-tech/linux.git;protocol=https;branch=${BRANCH} \
	   file://defconfig \
	   "
SRC_URI:append = " file://merge_config.sh  \
                   file://0001-delete_expr.h.patch  \
				   file://0001-change-makefile.patch  \
                "

INITRAMFS_IMAGE_BUNDLE = "1"
INITRAMFS_IMAGE = "dubhe-image-initramfs"

#KBUILD_DEFCONFIG_starfive = "starfive_dubhe_defconfig"

COMPATIBLE_MACHINE = "(starfive-dubhe)"

#KERNEL_FEATURES:remove = "cfg/fs/vfat.scc"

do_copy_merge () {
	echo  ${WORKDIR}
	chmod +x   ${WORKDIR}/merge_config.sh
    cp  -f ${WORKDIR}/merge_config.sh ${WORKDIR}/recipe-sysroot-native/usr/bin/
       
}


addtask do_copy_merge after do_populate_lic before do_kernel_configme

